package cn.itsource.web.controller;

import cn.itsource.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/user/{id}")
    public User getUserById(@PathVariable("id") Long id){
        return new User(id,"古老板","我创建了学荣ui:port:1001");
    }
}
